<!DOCTYPE html>
<html lang="zh-CN" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>认领记录详情</title>
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css" rel="stylesheet">
    <link href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.7.2/font/bootstrap-icons.css" rel="stylesheet">
    <style>
        body {
            overflow-x: hidden;
        }
        #sidebar {
            min-height: 100vh;
            box-shadow: 2px 0 5px rgba(0,0,0,0.1);
            position: fixed;
            left: 0;
            top: 0;
            z-index: 1000;
        }
        .main-content {
            margin-left: 0;
            transition: margin-left 0.3s;
            position: relative;
            z-index: 1;
        }
        @media (min-width: 768px) {
            .main-content {
                margin-left: 25%;
            }
        }
        @media (min-width: 992px) {
            .main-content {
                margin-left: 16.666667%;
            }
        }
    </style>
</head>
<body>
    <div class="container-fluid">
        <div class="row">
            <!-- 侧边导航栏 -->
            <div th:replace="fragments/sidebar :: sidebar"></div>

            <!-- 主内容区域 -->
            <main class="col-md-9 ms-sm-auto col-lg-10 px-md-4 main-content">
                <div class="d-flex justify-content-between align-items-center mb-4">
                    <h2>认领记录详情</h2>
                    <a th:href="@{/claim-record/list}" class="btn btn-outline-secondary">返回列表</a>
                </div>

                <!-- 认领记录信息 -->
                <div class="card">
                    <div class="card-header">
                        <h5 class="card-title mb-0">认领记录信息</h5>
                    </div>
                    <div class="card-body">
                        <div class="row">
                            <div class="col-md-6">
                                <div class="mb-3">
                                    <strong>记录ID：</strong>
                                    <span th:text="${claimRecord.id}"></span>
                                </div>
                                <div class="mb-3">
                                    <strong>认领人：</strong>
                                    <span th:text="${claimRecord.claimer}"></span>
                                </div>
                                <div class="mb-3">
                                    <strong>联系方式：</strong>
                                    <span th:text="${claimRecord.contact}"></span>
                                </div>
                                <div class="mb-3">
                                    <strong>认领时间：</strong>
                                    <span th:text="${#temporals.format(claimRecord.claimTime, 'yyyy-MM-dd HH:mm')}"></span>
                                </div>
                            </div>
                            <div class="col-md-6">
                                <div class="mb-3">
                                    <strong>物品ID：</strong>
                                    <span th:text="${claimRecord.itemId}"></span>
                                </div>
                                <div class="mb-3">
                                    <strong>物品标题：</strong>
                                    <span th:text="${claimRecord.itemTitle}"></span>
                                </div>
                                <div class="mb-3">
                                    <strong>物品分类：</strong>
                                    <span th:text="${claimRecord.itemCategory}"></span>
                                </div>
                            </div>
                        </div>
                        
                        <div class="mb-3">
                            <strong>物品描述：</strong>
                            <div class="border rounded p-3 mt-2">
                                <span th:text="${claimRecord.itemDescription}"></span>
                            </div>
                        </div>

                        <div class="mb-3">
                            <strong>丢失地点：</strong>
                            <span th:text="${claimRecord.itemLocation}"></span>
                        </div>

                        <div class="mb-3">
                            <strong>丢失时间：</strong>
                            <span th:text="${#temporals.format(claimRecord.itemLostTime, 'yyyy-MM-dd HH:mm')}"></span>
                        </div>
                    </div>
                </div>

                <!-- 操作按钮 -->
                <div class="mt-4">
                    <a th:href="@{/claim-record/list}" class="btn btn-primary">返回列表</a>
                </div>
            </main>
        </div>
    </div>

    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/js/bootstrap.bundle.min.js"></script>
</body>
</html>